const { Sequelize } = require('sequelize')
const config = require('../config/datebase')
/**
 * 全局的 Sequelize 实例
 */
const sequelize = new Sequelize(
  config.database,
  config.username,
  config.password,
  {
    ...config.options
  }
)

export default sequelize
